package tech.kpretty.blockqueue;

import java.util.concurrent.*;

public class Demo {
    public static void main(String[] args) {
        BlockingQueue<String> queue = new ArrayBlockingQueue<>(3);

        queue.add("a");
        queue.add("a");
        queue.add("a");
        //queue.add("a");

        queue.remove();
        queue.remove();
        queue.remove();
        //queue.remove();
    }
}
